regexp.bitState.matchcap (field)
12 uses
regexp (current package)
backtrack.go#L40: matchcap []int
backtrack.go#L108: if cap(b.matchcap) < ncap {
backtrack.go#L109: b.matchcap = make([]int, ncap)
backtrack.go#L111: b.matchcap = b.matchcap[:ncap]
backtrack.go#L113: for i := range b.matchcap {
backtrack.go#L114: b.matchcap[i] = -1
backtrack.go#L284: if old := b.matchcap[1]; old == -1 || (longest && pos > 0 && pos > old) {
backtrack.go#L285: copy(b.matchcap, b.cap)
backtrack.go#L303: return longest && len(b.matchcap) > 1 && b.matchcap[1] >= 0
backtrack.go#L364: dstCap = append(dstCap, b.matchcap...)
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |